package pattern.singleton;

/**
 * <b>【饿汉式-静态代码块】【可用】</b><br>
 * Lazy Loading: 否 <br>
 * 线程安全: 是 <br>
 *
 * @Author: wangxiaonan
 * @Date: 2019/3/11
 **/
public class Singleton2 {

    private static final Singleton2 INSTANCE;

    static {
        INSTANCE = new Singleton2();
    }

    private Singleton2() {
    }

    public static Singleton2 getInstance() {
        return INSTANCE;
    }
}
